package com.person.yhzs.user.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.net.ftp.FTPFile;

import java.util.Date;

/**
 * @author shixuelian
 */
public class FileVo extends FTPFile {

    /**
     * 文件后缀名
     */
    private String suffixName;
    /**
     * 文件绝对路径
     */
    private String absolutePath;
    /**
     * 所属文件夹
     */
    private String folder;
    /**
     * 默认false
     */
    private boolean hidden;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" , timezone="GMT+8")
    private Date createTime;
    /**
     * 是否有子集标识
     * 新需求  方便前端做渲染添加
     */
    private  boolean haveChild;

    public boolean isHidden() {
        return hidden;
    }

    public void setHidden(boolean hidden) {
        this.hidden = hidden;
    }

    public String getAbsolutePath() {
        return absolutePath;
    }

    public void setAbsolutePath(String absolutePath) {
        this.absolutePath = absolutePath;
    }

    public boolean isHaveChild() {
        return haveChild;
    }

    public void setHaveChild(boolean haveChild) {
        this.haveChild = haveChild;
    }

    public String getSuffixName() {
        return suffixName;
    }

    public void setSuffixName(String suffixName) {
        this.suffixName = suffixName;
    }

    public String getFolder() {
        return folder;
    }

    public void setFolder(String folder) {
        this.folder = folder;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}
